package com.zhangtai.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import com.zhangtai.utils.DateUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ExportContractPdfVo {

    private String oid;
    @ApiModelProperty(value="合同id")
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;

    @ApiModelProperty(value="合同期限")
    private String representativeLimit;
    @ApiModelProperty(value="合同开始时间")
    private String representativeStart;
    @ApiModelProperty(value="合同结束时间")
    private String representativeEnd;
    @ApiModelProperty(value="签约地点")
    private String contractAddress;
    @ApiModelProperty(value="签约时间")
    private String contractDate = DateUtils.format(new Date(),"yyyy-MM-dd");
    @ApiModelProperty(value="工作类型")
    private String server;
    @ApiModelProperty(value="工作地点")
    private String workAddress;
    @ApiModelProperty(value="月薪")
    private String salary;
    @ApiModelProperty(value="发薪时间")
    private String salaryDate;
    @ApiModelProperty(value="甲方主体id")
    private String companyId;
    private String serverId;
    @ApiModelProperty(value="模板id")
    private String modelId;
    @ApiModelProperty(value="服务工作单位")
    private String serverName;
    @ApiModelProperty(value="合同类型 (1:劳动合同 2：实习协议 3： 退休返聘协议 4解除合同协议)")
    private String contractType;
    @ApiModelProperty(value="签约类型 （1：新签 2：续签 3：解除 4:调动新签）")
    private Integer type;
    @ApiModelProperty(value="其他约定")
    private String salaryReason;

    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty(value="解除协议之前活跃合同id")
    private Long renewContractId;
    @ApiModelProperty(value="支付日期")
    private Date payDate;

    private String reason;
}
